﻿using System.ComponentModel;
using RaytracerLib.RenderableObjects;
using RaytracerLib.UVMappers;

namespace Raytracer.PropertyGridDecorators
{
    public class TorusObjectProperties : RenderableObjectProperties
    {
        private TorusObject m_torus;

        public TorusObjectProperties(TorusObject a_torus) :
            base(a_torus)
        {
            m_torus = a_torus;
        }

        [Category(Categories.PROPERTIES)]
        [TypeConverter(typeof(DoubleConverter))]
        public double BigRadius
        {
            get
            {
                return m_torus.BigRadius;
            }
            set
            {
                m_torus.BigRadius = value;
            }
        }      

        [Category(Categories.PROPERTIES)]
        [TypeConverter(typeof(DoubleConverter))]
        public double SmallRadius
        {
            get
            {
                return m_torus.SmallRadius;
            }
            set
            {
                m_torus.SmallRadius = value;
            }
        }
    }
}